<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style>
	.login-user{
		width: calc(100% - 3em);
		padding:1.5em;
	}
	
	.login-user-info{
		border: 0px #000 solid;
	}
	.login-user-info .login-tx{width: 5.5rem;height: 5.5rem;border-radius: 50%;margin-left: 1em;}
	.login-uname{display: inline-block; max-width: 35%;margin:0em 0.3em;font-size: 1.2em; position: relative;top: 0.4em;}
	.login-tc{width: 1em;margin-left: 0.5em;}
	
	.login-btn{margin-top: 1.2em;}
	.login-btn span{display: inline-block;width: 30%;text-align: center;color:#666}
	.login-btn img{width: 3.5rem;margin-bottom: 0.2em;}
	.login_dt img{width: 3.8rem;margin-left: -5px;}
	
	
</style>
<script type="text/javascript">
	$(function(){
		
		$(".login-tc").click(function(){
			layer.confirm('退出登录？',function(){
				location.href="../acc/exit.html";
			})
		})
		
		$(".login-btn a").click(function(){
			if("${login_usee.uid}"==""){
				layer.alert("你还没有登陆，点击进入登录页面",function(){
					location.href="../acc/login.html";
				})
				return false;
			}
			return true;
		})
		
	})
</script>
<div class="login-user">
	
	<div class="login-user-info">
		<c:if test="${login_usee==null}">
			<a href="../acc/login.html">
				<img class="login-tx" src="../../static/img/youke.jpg"/>
				<span class="login-uname yx-oneline yx-hover-red yx-color-one">未登录</span>
				<span class="layui-badge layui-bg-blue">头衔</span>
			</a>
		</c:if>
		<c:if test="${login_usee!=null}">
			<a href="../user/rus.html?uid=${login_usee.uid}">
				<img class="login-tx" src="../../static/tu/${login_usee.uid}/tou.png"/>
				<span class="login-uname yx-oneline yx-hover-red yx-color-one">${login_usee.uname}</span>
				<span class="layui-badge layui-bg-blue usee_tx">${login_usee.ujf}</span>
			</a>
			<img class="login-tc yx-hover-red" src="../../static/img/user_btn/btn_exit.png" title="退出"/>
		</c:if>
	</div>
	
	<div class="login-btn yx-hover-zi-red">
		<a href="../post/cpt.html"><span><img src="../../static/img/user_btn/btn_fatie.png"/><br />发帖</span></a>
		<a href="../user/rus.html"><span><img src="../../static/img/user_btn/btn_info.png"/><br />资料</span></a>
		<a href="../post/us_forposts.html?uid=${login_usee.uid}&way=3"><span class="login_dt"><img src="../../static/img/user_btn/btn_dongtai.png"/><br />动态</span></a>
	</div>
	
</div>





